package com.larissa.quiz.database;

import androidx.lifecycle.LiveData;
import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.Query;


import com.larissa.quiz.Question;

import java.util.List;


@Dao
public interface QuestionDao {
    @Query("SELECT * FROM Question")
    List<Question> getQuestions();

    @Insert
    void addQuestion(Question question);
}